home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
pet_1112.swf
/
scripts
/
__Packages
/
caurina
/
transitions
/
TweenListObj.as
< prev
Wrap
Text File
|
2009-04-14
|
5KB
|
149 lines
class caurina.transitions.TweenListObj
{
function TweenListObj(p_scope, p_timeStart, p_timeComplete, p_useFrames, p_transition)
{
this.scope = p_scope;
this.timeStart = p_timeStart;
this.timeComplete = p_timeComplete;
this.useFrames = p_useFrames;
this.transition = p_transition;
this.auxProperties = new Object();
this.properties = new Object();
this.isPaused = false;
this.timePaused = undefined;
this.isCaller = false;
this.updatesSkipped = 0;
this.timesCalled = 0;
this.skipUpdates = 0;
this.hasStarted = false;
}
function clone(omitEvents)
{
var _loc2_ = new caurina.transitions.TweenListObj(this.scope,this.timeStart,this.timeComplete,this.useFrames,this.transition);
_loc2_.properties = new Object();
for(var _loc3_ in this.properties)
{
_loc2_.properties[_loc3_] = this.properties[_loc3_].clone();
}
_loc2_.skipUpdates = this.skipUpdates;
_loc2_.updatesSkipped = this.updatesSkipped;
if(!omitEvents)
{
_loc2_.onStart = this.onStart;
_loc2_.onUpdate = this.onUpdate;
_loc2_.onComplete = this.onComplete;
_loc2_.onOverwrite = this.onOverwrite;
_loc2_.onStartParams = this.onStartParams;
_loc2_.onUpdateParams = this.onUpdateParams;
_loc2_.onCompleteParams = this.onCompleteParams;
_loc2_.onOverwriteParams = this.onOverwriteParams;
}
_loc2_.rounded = this.rounded;
_loc2_.isPaused = this.isPaused;
_loc2_.timePaused = this.timePaused;
_loc2_.isCaller = this.isCaller;
_loc2_.count = this.count;
_loc2_.timesCalled = this.timesCalled;
_loc2_.waitFrames = this.waitFrames;
_loc2_.hasStarted = this.hasStarted;
return _loc2_;
}
function toString()
{
var _loc2_ = "\n[TweenListObj ";
_loc2_ += "scope:" + String(this.scope);
_loc2_ += ", properties:";
var _loc3_ = true;
for(var _loc4_ in this.properties)
{
if(!_loc3_)
{
_loc2_ += ",";
}
_loc2_ += "[name:" + this.properties[_loc4_].name;
_loc2_ += ",valueStart:" + this.properties[_loc4_].valueStart;
_loc2_ += ",valueComplete:" + this.properties[_loc4_].valueComplete;
_loc2_ += "]";
_loc3_ = false;
}
_loc2_ += ", timeStart:" + String(this.timeStart);
_loc2_ += ", timeComplete:" + String(this.timeComplete);
_loc2_ += ", useFrames:" + String(this.useFrames);
_loc2_ += ", transition:" + String(this.transition);
if(this.skipUpdates)
{
_loc2_ += ", skipUpdates:" + String(this.skipUpdates);
}
if(this.updatesSkipped)
{
_loc2_ += ", updatesSkipped:" + String(this.updatesSkipped);
}
if(this.onStart)
{
_loc2_ += ", onStart:" + String(this.onStart);
}
if(this.onUpdate)
{
_loc2_ += ", onUpdate:" + String(this.onUpdate);
}
if(this.onComplete)
{
_loc2_ += ", onComplete:" + String(this.onComplete);
}
if(this.onOverwrite)
{
_loc2_ += ", onOverwrite:" + String(this.onOverwrite);
}
if(this.onStartParams)
{
_loc2_ += ", onStartParams:" + String(this.onStartParams);
}
if(this.onUpdateParams)
{
_loc2_ += ", onUpdateParams:" + String(this.onUpdateParams);
}
if(this.onCompleteParams)
{
_loc2_ += ", onCompleteParams:" + String(this.onCompleteParams);
}
if(this.onOverwriteParams)
{
_loc2_ += ", onOverwriteParams:" + String(this.onOverwriteParams);
}
if(this.rounded)
{
_loc2_ += ", rounded:" + String(this.rounded);
}
if(this.isPaused)
{
_loc2_ += ", isPaused:" + String(this.isPaused);
}
if(this.timePaused)
{
_loc2_ += ", timePaused:" + String(this.timePaused);
}
if(this.isCaller)
{
_loc2_ += ", isCaller:" + String(this.isCaller);
}
if(this.count)
{
_loc2_ += ", count:" + String(this.count);
}
if(this.timesCalled)
{
_loc2_ += ", timesCalled:" + String(this.timesCalled);
}
if(this.waitFrames)
{
_loc2_ += ", waitFrames:" + String(this.waitFrames);
}
if(this.hasStarted)
{
_loc2_ += ", hasStarted:" + String(this.hasStarted);
}
_loc2_ += "]\n";
return _loc2_;
}
}